import requests
import random
import hashlib
import logging

class ApiBase:
    """
    本类实现所有api对接类的基类，提供公共验证方法，保证实现的api可用于验证可行性
    """
    def __init__(self):
        self.requests = requests
        self.random = random
        self.hashlib = hashlib
        self.logging = logging
        self.url = None
        self.appid = None
        self.apikey = None
        self.text = None
        self.params = None

    def api_verify(self):
        """验证接口"""
        pass